<@user.user_html>
    <script type="text/javascript" src="${base}/scripts/user/vote/vote.js" language="javascript"></script>
    <div class="clear"></div>
	

    <div class="swarp">
    	<#-- 嵌入导航-->
		<#include "/WEB-INF/content/include/user/app.ftl">
        <div class="ssrightwarp">
			<div class="sright">
				<div class="header_warp">
					<div class="sheader">
						<div class="sheader_img"><img src="${base}/images/temp/temp_head.jpg" /></div>
						<div class="sheader_name"><a href="#">${(vote.space.user.name)!}</a>发起的投票</div>
						<div class="sheader_ta"><a href="#">TA 的投票</a></div>
					</div>
                    <div class="sheader_top">
                    	<p>发起：<#if vote.startTime?exists> ${vote.startTime?string("yyyy-MM-dd")} </#if></p> 
                        <p>票数： ${(vote.totalCount)!} </p>
                        <p>结束：<#if vote.endTime?exists> ${vote.endTime?string("yyyy-MM-dd")}</#if></p>
                    </div>
					<div class="clear"></div>
				</div>
				<div class="clear"></div>
				<div class="secretTop">
					<div class="sperson"></div>
					<div class="box">
						<span></span>
						<p style=" float:none; width:100%; text-align:center; overflow:hidden;">${(vote.title)!}<em style="color:#333; font-weight:bold;"> (可选${vote.count}项)</em></p>
						<div class="clear"></div>
					</div>
				</div>
									<#-- 以下声明了一组颜色-->
									<#function color index=0>
										<#if index==0>
											<#return  "#7FFF00">
										</#if>
										<#if index==1>
											<#return  "#00FFFF">
										</#if>
										<#if index==2>
											<#return  "#87CEFA">
										</#if>
										<#if index==3>
											<#return  "#FFFF00">
										</#if>
										<#if index==4>
											<#return  "#000000">
										</#if>
										<#if index==5>
											<#return  "#DC143C">
										</#if>
										<#if index==6>
											<#return  "#FFFACD">
										</#if>
										<#if index==7>
											<#return  "#FFFACD">
										</#if>
										<#if index==8>
											<#return  "#FFFACD">
										</#if>
										<#if index==9>
											<#return  "#FFFACD">
										</#if>
									</#function>
				
                <div class="vote_show">
              	  	<form name="voteForm" id="voteForm" method="post" action="${base}/user/vote/index!vote">
	              	  	<input type="hidden" name="id" value="${(id?c)!}"/>
	                	<ul>
	                		<#if items??>
	                		<#list items as item>
	                    	<li>
	                        	<span>${item.title!}:  </span>
	                            <div class="vote_bg">
	                            	<div class="vote_line" style=" background-color:${color(item_index)}; width:${item.percent!}%;"></div>
	                            </div>
	                            <em>(${item.percent!}%)</em>
	                            <p>
	                            	<#if vote.status==0><input type="checkBox"   class="voteitem" name="ids" value="${item.id}"/></#if>
	                            </p>
	                        </li>
	                      	</#list>
	                      	</#if>
							<div class="clear"></div>
	                    </ul>
						<div class="clear"></div>
						<div style="text-align:center; width:100%; margin:10px 0px;"><#if vote.status==0><input type="button" class="vd_btt"  value=" 投票 " onClick="vote(${vote.count})"/></#if></div>
					</form>
                </div>
                <#-- 
				<div class="vote_re">
					<h6>关注人投票结果： </h6>
					<p>→ <span>刘译泽:</span> <em>06-23</em>   投票给(No house)(No car)(No money)(No job)(No happy)(No lover)(欢迎补充)</p>
				</div>
				-->
				<div style="width:90%; margin:0 auto; border-bottom:1px dotted #bfbfbf; margin-top:20px;"></div>
				<#--
				<div class="buildlist">
					<div class="comment">
						<div class="comtitle">
							<img src="${base}/images/comment.gif" />
							<input name="" type="button" class="sm" value="表 情" />
						</div>
						<div class="clear"></div>
						<div class="comsend">
							<textarea name="" class="t" style="width:470px; height:160px; float:left;"></textarea>
							<span>限300字符</span>
							<input name="" type="button" class="sm" value="发 送" />
							<p>按Ctrl+Enter发送消息</p>
						</div>
					</div>
					
				
					
					<div class="building">
						<div class="floor">
						
							<div class="floorheader">
								<div class="builds">
									<div class="speak">
										需要的话可以联系我。<br />
										需要的话可以联系我。<br />
								
									</div>
									<em><a href="#">举报</a></em>
									<div class="clear"></div>
									<span>2010-06-10 12:12</span>
								</div>
								<div class="buildcar">
									<img src="${base}/images/temp/car.gif" class="carimg" />
									<span>VIP</span>
									<div class="statu">
										<img src="${base}/images/statu_up.gif" />
									</div>
									<div class="clear"></div>
									<h5>萧萧小鱼</h5>
								</div>
								<div class="clear"></div>
							</div>
							
							<div class="floorfoot">
								<div class="buildcar">
									<img src="${base}/images/temp/car.gif" class="carimg" />
									<span>VIP</span>
									<div class="statu">
										<img src="${base}/images/statu_up.gif" />
									</div>
									<div class="clear"></div>
									<h5>萧萧小鱼</h5>
								</div>
								
								<div class="builds">
									<div class="speak">
										需要的话可以联系我。<br />
										需要的话可以联系我。<br />
								
									</div>
									<em><a href="#">举报</a></em>
									<div class="clear"></div>
									<span>2010-06-10 12:12</span>
								</div>
							</div>
							
							<div class="floorfoot">
								<div class="buildcar">
									<img src="${base}/images/temp/car.gif" class="carimg" />
									<span>VIP</span>
									<div class="statu">
										<img src="${base}/images/statu_up.gif" />
									</div>
									<div class="clear"></div>
									<h5>萧萧小鱼</h5>
								</div>
								
								<div class="builds">
									<div class="speak">
										需要的话可以联系我。<br />
										需要的话可以联系我。<br />
								
									</div>
									<em><a href="#">举报</a></em>
									<div class="clear"></div>
									<span>2010-06-10 12:12</span>
								</div>
							</div>
							<div class="clear"></div>
						</div>
						
						
						
						
						<div class="floor">
						
							<div class="floorheader">
								<div class="builds">
									<div class="speak">
										需要的话可以联系我。<br />
										需要的话可以联系我。<br />
								
									</div>
									<em><a href="#">举报</a></em>
									<div class="clear"></div>
									<span>2010-06-10 12:12</span>
								</div>
								<div class="buildcar">
									<img src="${base}/images/temp/car.gif" class="carimg" />
									<span>VIP</span>
									<div class="statu">
										<img src="${base}/images/statu_up.gif" />
									</div>
									<div class="clear"></div>
									<h5>萧萧小鱼</h5>
								</div>
								<div class="clear"></div>
							</div>
							
							<div class="floorfoot">
								<div class="buildcar">
									<img src="${base}/images/temp/car.gif" class="carimg" />
									<span>VIP</span>
									<div class="statu">
										<img src="${base}/images/statu_up.gif" />
									</div>
									<div class="clear"></div>
									<h5>萧萧小鱼</h5>
								</div>
								
								<div class="builds">
									<div class="speak">
										需要的话可以联系我。<br />
										需要的话可以联系我。<br />
								
									</div>
									<em><a href="#">举报</a></em>
									<div class="clear"></div>
									<span>2010-06-10 12:12</span>
								</div>
							</div>
							
							<div class="floorfoot">
								<div class="buildcar">
									<img src="${base}/images/temp/car.gif" class="carimg" />
									<span>VIP</span>
									<div class="statu">
										<img src="${base}/images/statu_up.gif" />
									</div>
									<div class="clear"></div>
									<h5>萧萧小鱼</h5>
								</div>
								
								<div class="builds">
									<div class="speak">
										需要的话可以联系我。<br />
										需要的话可以联系我。<br />
							
									</div>
									<em><a href="#">举报</a></em>
									<div class="clear"></div>
									<span>2010-06-10 12:12</span>
								</div>
							</div>
							<div class="clear"></div>
						</div>
						
						
					</div>
					
				</div>
				-->
			</div>
		</div>
        <div class="clear"></div>
    </div>
</@user.user_html>


